<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a="http://richfaces.org/a4j"
    xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rg="http://www.ruijie.com.cn/faces/ui"
    template="/layout/contentLayout.xhtml">

    <ui:param name="param_pageTitle"
        value="#{questionExtendFieldAction.questionExtend.item}的子选项信息" />
    <ui:param name="param_navigationUrl"
        value="/luyuan/sale/layout/navigationSale.jsf" />

    <ui:define name="road">
        <span><h:outputLink value="">#{messages.luyuan_crm_sale_question}</h:outputLink></span>
    </ui:define>

	<ui:define name="content">
		<a:form>

			<rg:titlePanel headerTitle="选项信息" style="margin-top: 10px;"
				readonly="false">
				<ui:define name="headerActions">
					<h:commandLink
						onclick="UI.instance.showDialog({id:'addQuestionExtendField', src:'/luyuan/sale/addQuestionExtendField.jsf?uuid=#{questionExtendFieldAction.questionExtend.id}'});"
						value="#{messages.luyuan_crm_add}" />
				</ui:define>

				<rg:table id="questionExtendFieldTable"
					value="#{questionExtendFieldAction.tableModel}" var="item">
					<rg:column property="id" type="checkbox" headerType="checkbox"
						headerStyle="width:4%;" />
					<rg:column property="optionValue" title="选项值" width="100" />
					<rg:column property="optionDesc" title="选项描述" width="100" />
					<rg:column type="oper" title="#{messages.luyuan_crm_operator}">
						<ul class="links">
							<li><a:commandLink
									action="#{questionExtendFieldAction.delQuestionExtendField(item.id)}"
									value="#{messages.luyuan_crm_delete}" /></li>
						</ul>
					</rg:column>
				</rg:table>
			</rg:titlePanel>
		</a:form>
		<a:form>
            <a:jsFunction name="reRenderQuestionExtendFieldTable" reRender="questionExtendFieldTable" />
        </a:form>
	</ui:define>
</ui:composition>
